oops; backwards test
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 18 Nov 2005 19:46:34 +0000 (19:46 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 18 Nov 2005 19:46:34 +0000 (19:46 +0000)
gpsbabel/smplrout.c

index cd1318ac97a09d1b5be82ba71d5edbe707b307ab..40d2f897d69968e5d0cedb35c58512b73e441e8d 100644 (file)
@@ -220,7 +220,7 @@ routesimple_tail( const route_head *rte )
                xte_recs[i].intermed->xte_rec = xte_recs+i;
        }
        /* while we still have too many records... */
-       while ( (countopt && count < xte_count) || (erroropt && error < totalerror) ) {
+       while ( (countopt && count < xte_count) || (erroropt && totalerror < error) ) {
                i = xte_count - 1;
                /* remove the record with the lowest XTE */
                if ( erroropt ) {